<p id="notice"><%= notice %></p>

<p>
  <strong>Title:</strong>
  <%= @post.title %>
</p>

<p>
  <strong>Body:</strong>
  <%= @post.body %>
</p>

<p>
  <%= hidden_field_tag 'from_id', @post.id %>
  <%= render 'comments/add_comment' %>
</p>

<p>
  <h5>Tags</h5>
  <%= @post.get_tags.map(&:name) %>
</p>

<p>
  <%= render partial: 'tags/add_tag', locals: { :@tag_for => 'post', :@tag_from_id => @post.id} %>
</p>


<%= link_to 'Edit', edit_post_path(@post) %> |
<%= link_to 'Back', posts_path %>
